package com.teamall.web.fpgz.db.dao.mapper;

import com.teamall.web.fpgz.db.arg.CodeVillageInfoArg;
import com.teamall.web.fpgz.db.po.CodeVillageInfoPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeVillageInfoMapper {
    
    List<Integer> countByArg(CodeVillageInfoArg arg);

    List<CodeVillageInfoPO> selectByArg(CodeVillageInfoArg arg);

    CodeVillageInfoPO selectByPrimaryKey(Integer id);

    List<CodeVillageInfoPO> selectByArgAndPage(CodeVillageInfoArg arg, RowBounds rowBound);

    int insert(CodeVillageInfoPO record);

    int insertSelective(CodeVillageInfoPO record);

    int insertBatch(@Param("list") List<CodeVillageInfoPO> records);

    int updateByArgSelective(@Param("record") CodeVillageInfoPO record,
            @Param("arg") CodeVillageInfoArg arg);

    int updateByArg(@Param("record") CodeVillageInfoPO record,
            @Param("arg") CodeVillageInfoArg arg);

    int updateByPrimaryKeySelective(CodeVillageInfoPO record);

    int updateByPrimaryKey(CodeVillageInfoPO record);
    
    int deleteByArg(CodeVillageInfoArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}